package com.lottemall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 给雪花算法的这两个属性
 */
@Data
@ConfigurationProperties(prefix = "lt.worker")
public class IdWorkerProperties {

    private long workerId;// 当前机器id

    private long dataCenterId;// 序列号
}